cmake_minimum_required(VERSION 3.16)
project(LDAP)

set(CMAKE_CXX_STANDARD 11)

add_library(host_bind_filter host_bind_filter.cpp host_bind_filter.h easylogging++.h easylogging++.cc host_bind_filter.def ContextBindHandler.cpp ContextBindHandler.h)

add_executable(ldap_filter_test main.cpp host_bind_filter.cpp host_bind_filter.h easylogging++.h easylogging++.cc host_bind_filter.def ContextBindHandler.cpp ContextBindHandler.h)

with_mt_if_msvc(host_bind_filter)
with_mt_if_msvc(ldap_filter_test)